// -*- coding: utf-8 -*- 
/**
 * Project: AlgorithmsLearn
 * Creator: yanking
 * Create time: 2022-02-22 16:56
 * IDE: IntelliJ IDEA
 * Introduction:
 */
package com.leetCode.ConvertIntegerLCCI;

public class ConvertIntegerLCCI {
    public int convertInteger(int A, int B) {
        // 判断A->B的二进制数需要改变几个数字才能变成一样
        return Integer.bitCount(A ^ B);
    }
}
